<div class="content">
<%=render :partial=>"breadcrumb"%>
<% @i=0 %>
 <%if @photos.empty?%>
        <div class="album">    
        <%= image_tag("/stylesheets/"+get_scheme+"/images/noimage") %>
        </div>
    <% end %>

<% while @i < @photos.size do %>
<!--previous style: style="width:120px; margin: 0 30px 30px 0; float:left;text-align:center" changed to id="photo" -->
<div class="photo">
  <% image = image_tag(@photos[@i].to_url(:thumbnail), :id=>"photo_#{@photos[@i].id}", :title=>@photos[@i].title) %>
  <%= link_to image, :action=>"show_diafilm", :id=>@photos[@i] %><br>
  <%= link_to "#{ @photos[@i].title}", :controller=>"view" ,:action=>"show_diafilm", :id=>@photos[@i] %>
  <% @i+=1 %>
</div>
<% end %>

</div>